package chenjiuxu.seniorui

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import chenjiuxu.seniorui.view.DoubleProgressBar

class DoubleBarActivity : AppCompatActivity(), DoubleProgressBar.OnDoubleProgressListener {
    override fun onEndDoubleProgressListener(left: Int, right: Int, size: Int) {
        Log.e("lll结束","left="+left+"   right="+right+"   size="+size)
    }

    override fun onDoubleProgressListener(left: Int, right: Int, size: Int) {
        Log.e("lll","left="+left+"   right="+right+"   size="+size)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_double_bar)
        var bar = findViewById<DoubleProgressBar>(R.id.activity_double_bar_bar)
        bar.setMax(10000)
        bar.setMaxSize(1000)
        bar.setOnDoubleProgressListener(this)

    }

}
